Controlling Execution
Running a Script
To run a script in the debugger, click the Run button.
Running a script here is identical to running a script from a script palette or plug-in; when the script has completed execution, the debugger window will close.
Running scripts is primarily used in conjunction with setting a breakpoint in the debugger. For details on setting and using breakpoints, see Using Breakpoints.
Stepping Through a Single Line of a Script
To execute a single statement in the script, click the Step Over button.
The Step Over button advances script execution by a single statement and refreshes the data display pane of the debugger. The script position indicator advances to indicate the new location of script execution. If the statement which is stepped through is a user defined subroutine, all the code within the subroutine is executed.
When stepping through a statement containing a user-interactive function call (such as GetPt() or GetLine()), the debugger will prompt the user for input. Custom dialog box function calls will cause the dialog box to become active until a dialog box event occurs; control is then returned to the debugger.
Stepping into a Subroutine
To advance execution into a user defined subroutine, click the Step Into button.
The Step Into button is used when a statement containing a call to a user-defined subroutine is reached. Whereas the Step Over button will execute all the code contained within the subroutine and move to the next statement in the calling function, Step Into will advance script execution to the first statement within the subroutine body.
The Step Into button performs a Step Over action with all other statements.
Stepping Out of a Subroutine
To advance execution from the current script location in a subroutine to the next statement in the calling function, click the Step Out button.
When stepping out of a subroutine, all statements which follow the current script location will be executed, and script execution will advance to the next statement in the calling routine.
Auto-Step Through the Script
To automatically step through a script on a line-by-line basis, click the Auto-Step button.
The Auto-Step button will automatically advance the script at a speed determined by the Auto-Step slider control.
Pausing Script Execution
To pause script execution, click the Pause Script button.
The Pause Script button will stop auto-step execution at the current execution location in the script. Script execution can be resumed by clicking the Auto-Step button.
The Pause Script button can also pause execution of scripts in infinite loops; in some instances, however, Pause Script may not be able to stop such loops.
Stopping Script Execution
To terminate execution of a script, click the Kill Script button.
The Kill Script button will immediately terminate script execution. After the Kill Script button is pressed, the debugger window will close.

VectorScript Development Tools : The VectorScript Debugger : Controlling Execution

Nemetschek NA
Phone: 410.290.5114
Fax: 410.290.8050